package it.desertsupport.spring.service;

import java.util.List;

import it.desertsupport.model.User;
//import it.desertsupport.struts.form.UtenteForm;

public interface UserService {
	
	public void save(User transientInstance) throws Exception;
	public void delete(User persistentInstance) throws Exception;
	public void update(User utenteForm) throws Exception;
	public User getUser(Long idUser) throws Exception;
	public List<User> findByExample(User instance) throws Exception;
	public List<User> findAll() throws Exception;
	public User findByLoginAndPassword(String login, String password) throws Exception;
	public void logicDelete(Long idUtente) throws Exception;
//	public List<User> cercaUtente(UtenteForm utenteForm) throws Exception;
//	public void inserisciNuovoUtente(UtenteForm utenteForm) throws Exception;
//	public boolean controllaLoginUtente(UtenteForm utenteForm) throws Exception;
	public List<User> findAllActive() throws Exception;
	
}
